package cn.stylefeng.guns.modular.system.service;

import cn.stylefeng.guns.modular.dto.ProxyUserDTO;
import cn.stylefeng.guns.modular.system.entity.UserInfoRes;
import cn.stylefeng.guns.modular.system.vo.SubagentVO;
import cn.stylefeng.guns.sys.modular.system.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName ProxyUserService
 * @Author lzy
 * @Date 2020/1/6 11:33
 * @VERSION 1.0
 **/

public interface ProxyUserService extends IService<User> {

    void insertProxyUser(SubagentVO subagentVO);

    User selectUserById(Long superiorAgentId);

    List<UserInfoRes> findListByCondition(String startTime, String endTime, String account, String name,  List<String> subUserIds);

    void updateRate(Long userId, BigDecimal exchangeRate);

    void updateProxy(ProxyUserDTO build);

    void deleteProxy(Long id);

    User selectProxy(Long id);

    Integer getAccountCount(String phone);

    List<String> findSubUserIdList(String id);

    List<User> selectProxyByUserId(String userId);
}
